<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<head>
    <title>后台管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link rel="stylesheet" href="../../css/adminFragment.css">
</head>

<body>
<div>
    <div  th:insert="adminFragment::fragment-name"></div>
    <div style="height: 200px"></div>
    <div style="width: 400px;margin: auto">
        <form th:action="@{/admin/changePassword}" th:method="POST">
            <div class="form-group">
                <label for="oldPassword">请输入旧密码</label>
                <input type="password" class="form-control" id="oldPassword" aria-describedby="emailHelp" placeholder="请输入旧密码" name="oldPassword">
            </div>
            <div class="form-group">
                <label for="newPassword">请输入新密码</label>
                <input type="password" class="form-control" id="newPassword" placeholder="请输入新密码" name="newPassword">
            </div>
            <div class="form-check">
                <label class="form-check-label" th:text="${msg}"></label>
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>
</body>

</html>